package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author ：DaLin
 * @date ：2021/1/12 10:14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "sound")
public class Sound implements Serializable {
    private static final long serialVersionUID = 435183095092216817L;

    private ObjectId id; //主键id
    private Long created;//创建时间
    private Long userId;// 发送人id
    private String soundUrl;//音频文件
    private Integer state;//状态 0未被别人接收1已被别人接收


}
